﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-

scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    {{msg}}
    <p>{{msg+'快点学完'}}</p>
    <p>{{msg}}</p>
    {{msg.toUpperCase()}}
    {{friend.name}}
    <p>{{friend.age>=18?'成年':'未成年'}}</p>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        msg: 'hello 莉',
        friend: {
          name: 'lili',
          age: 27
        }
      }
    })
  </script>

</body>

</html>qq